# 构建Movierequest类
from requests import Request


class MovieRequest(Request):
    # 改写Request类
    def __init__(self, callback=None, fail_time=0, timeout=10, method='GET', url=None, headers=None):
        Request.__init__(self, method, url, headers)
        self.callback = callback
        self.fail_time = fail_time
        self.timeout = timeout
